const baseApi = import.meta.env.VITE_APP_BASE_API

const api = {
    "fileUploadURL": "/file/upload",
    "fileDownloadURL": baseApi + "/file/download",
    "reqGenerateCaptchaURL": "/captcha/generate",
    "getRoutesURL": "/menu/routes",
    "getUserInfoURL": "/account/info",
    "reqUsernameLoginURL": "/login/username",
    "reqEmailLoginURL": "/login/email",
    "logoutURL": "/logout",
    "reqAllMenuTreeURL": "/menu/all/tree",
    "reqMenuByMenuTypeURL": "/menu/menuType",
    "reqAddMenuURL": "/menu",
    "reqUpdateMenuURL": "/menu",
    "reqRemoveBatchMenuURL": "/menu/batch",
    "reqFullCheckMenuIdByRoleIdURL": "/menu/roleId",
    "reqGetAllAccountURL": "/account/all",
    "reqAccountListByConditionURL": "/account/like",
    "reqAddAccountURL": "/account",
    "reqUpdateAccountURL": "/account",
    "reqUpdateSelfPasswordURL":"/account/updateSelf/password",
    "reqUpdateBindEmailURL":"/account/bindEmail",
    "reqRemoveBatchAccountByIdsURL": "/account/batch",
    "reqResetPasswordByIdURL": "/account/resetPassword",
    "reqRoleIdsByAccountIdURL": "/account/roles",
    "reqGiveRoles4AccountURL": "/account/giveRoles",
    "reqForgetPasswordURL": "/account/forgetPassword",
    "reqAllRolesURL": "/role/all",
    "reqRoleListByConditionURL": "/role/like",
    "reqAddRoleURL": "/role",
    "reqGiveMenuURL": "/role/giveMenu",
    "reqRemoveRoleByRoleIdURL": "/role",
    "reqSendEmailURL": "/email/common",
    "reqSendEmail4LoginURL": "/email/login",
    "reqSendEmail4BindEmailURL": "/email/bindEmail",
    "reqSendEmail4ForgetPasswordURL": "/email/forgetPassword",
    "reqSysLogPageURL":"/sysLog/page",
    "reqSysLogRemoveBatchURL":"/sysLog/remove/batch",
    "reqSysLogClearAllURL":"/sysLog/clearAll"
}
export default api
